import Api from "../../request/api"
export default {
    namespaced: true,
    state: {
        menulist: []
    },
    mutations: {
        initMenuList(state, payload) {
            state.menulist = payload
        }
    },
    actions: {
        getmenulist({
            commit
        }) {
            Api.menulist().then(res => {
                if (res.code == 200) {
                    commit("initMenuList", res.list)
                }
            })
        }
    },
    getters: {},

}